import report from '@/until/axios'
export const paramslist=(id,sel)=>report.get(`categories/${id}/attributes`,{
    params:{
        sel
    }
})
// 删除参数
export const delparams=(id,attrid)=>report.delete(`categories/${id}/attributes/${attrid}`)
// 添加动态参数或者静态属性
export const addparams=(id,obj)=>report.post(`categories/${id}/attributes`,obj)
// 回填数据
export const huiparams=(id,attrid)=>report.get(`categories/${id}/attributes/${attrid}`)
// 修改参数
export const editparams=(id,attrid,obj)=>report.put(`categories/${id}/attributes/${attrid}`,obj)
// 商品参数属性删除
export const chadel=(id,attrid,obj)=>report.put(`categories/${id}/attributes/${attrid}`,obj)